package com.aspose.cells;

import java.util.Stack;

abstract class ze implements zn {
   protected int a = 1;
   protected zada b;
   protected Stack c;
   protected Stack d;
   protected com.aspose.cells.a.d.zb e;
   protected com.aspose.cells.a.d.zb f;
   protected int g;
   protected float h;
   protected int i;
   protected int j;
   protected int k;
   protected int l;
   protected ImageFormat m;
   protected ImageOrPrintOptions n;
   protected com.aspose.cells.b.a.d.zm o;
   protected zbfn p;
   protected float q = 96.0F;
   protected float r = 96.0F;
   protected zade s = null;
   protected zui t = new zuj();

   public ze(int var1, int var2, ImageFormat var3, ImageOrPrintOptions var4, com.aspose.cells.b.a.d.zm var5, zbfn var6) {
      this.n = var4;
      if (var4 != null) {
         this.q = 96.0F;
         this.r = 96.0F;
      }

      this.k = var1;
      this.l = var2;
      this.m = var3;
      this.o = var5;
      this.p = var6;
      this.b = new zada();
      this.b(0);
      this.a(3);
      this.g = 2;
      this.h = 1.0F;
      this.i = 4;
      this.j = 0;
      this.c = new Stack();
      this.n();
      if (this.p != null) {
         this.p.a(this);
      }

   }

   private void n() {
      this.d = new Stack();
      this.e = new com.aspose.cells.a.d.zb();
      com.aspose.cells.b.a.b.a.zi var1 = new com.aspose.cells.b.a.b.a.zi();
      var1.a((float)(1.0D / (double)this.a), (float)(1.0D / (double)this.a));
      this.e.a(var1);
      this.f = new com.aspose.cells.a.d.zb();
      this.e.a((com.aspose.cells.a.d.zl)this.f);
   }

   public zade a() {
      return this.s;
   }

   public void a(zade var1) {
      this.s = var1;
   }

   public void b() {
      this.s.a();
   }

   public void c() {
      this.b();
   }

   public void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zq var2, float var3, float var4) {
      this.a(var1, var2.f(), var2.g(), var2.h(), var2.i(), var3, var4);
   }

   public void a(com.aspose.cells.b.a.b.zm var1, float var2, float var3, float var4, float var5, float var6, float var7) {
      if (this.a(var1)) {
         zato var8 = this.b(var1);
         this.t.a(this, var8.a(), var8.b(), var8.c(), var2, var3, var4, var5, var6, var7);
      } else {
         this.a(var1, (com.aspose.cells.b.a.b.zc)null, var2, var3, var4, var5, var6, var7);
      }

   }

   public void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zo[] var2) {
      this.a(var1, var2, 0.5F);
   }

   public void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zo[] var2, float var3) {
      this.a(var1, var2, 0, var2.length - 1, var3);
   }

   public void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zo[] var2, int var3, int var4, float var5) {
      if (this.a(var1)) {
         zato var6 = this.b(var1);
         this.t.a(this, var6.a(), var6.b(), var6.c(), var2, var3, var4, var5);
      } else {
         this.a(var1, var2, var3, var4, var5, false);
      }

   }

   public void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zq var2) {
      this.a(var1, (com.aspose.cells.b.a.b.zc)null, var2.f(), var2.g(), var2.h(), var2.i());
   }

   public void a(com.aspose.cells.b.a.b.zm var1, float var2, float var3, float var4, float var5) {
      this.a(var1, (com.aspose.cells.b.a.b.zc)null, var2, var3, var4, var5);
   }

   public void a(com.aspose.cells.b.a.b.zj var1, com.aspose.cells.b.a.b.zp var2, float var3, float var4, float var5, float var6, int var7) {
      this.a(var1, var2, (int)var3, (int)var4, (int)var5, (int)var6, var7);
   }

   public abstract void a(com.aspose.cells.b.a.b.zj var1, com.aspose.cells.b.a.b.zp var2, int var3, int var4, int var5, int var6, int var7);

   public void a(com.aspose.cells.b.a.b.zj var1, com.aspose.cells.b.a.b.zq var2, com.aspose.cells.b.a.b.zq var3, int var4) {
      this.a(var1, new com.aspose.cells.b.a.b.zp((int)var2.f(), (int)var2.g(), (int)var2.h(), (int)var2.i()), var3.f(), var3.g(), var3.h(), var3.i(), var4);
   }

   public void a(com.aspose.cells.b.a.b.zj var1, int var2, int var3, int var4, int var5) {
      this.a((float)var2, (float)var3, (float)var4, (float)var5, var1);
   }

   public void a(com.aspose.cells.b.a.b.zj var1, float var2, float var3, float var4, float var5) {
      this.a(var2, var3, var4, var5, var1);
   }

   public void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zo var2, com.aspose.cells.b.a.b.zo var3) {
      this.b(var1, var2.d(), var2.e(), var3.d(), var3.e());
   }

   public void b(com.aspose.cells.b.a.b.zm var1, float var2, float var3, float var4, float var5) {
      if (this.a(var1)) {
         zato var6 = this.b(var1);
         this.t.a(this, var6.a(), var6.b(), var6.c(), var2, var3, var4, var5);
      } else {
         this.d(var1, var2, var3, var4, var5);
      }

   }

   public void b(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zo[] var2) {
      com.aspose.cells.b.a.b.a.ze var3 = new com.aspose.cells.b.a.b.a.ze();
      var3.a(var2);
      this.a(var1, var3);
   }

   public void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.a.ze var2) {
      if (this.a(var1)) {
         zato var3 = this.b(var1);
         this.t.a(this, var3.a(), var3.b(), var3.c(), var2);
      } else {
         this.a(var1, (com.aspose.cells.b.a.b.zc)null, (com.aspose.cells.b.a.b.a.ze)var2);
      }

   }

   public void b(com.aspose.cells.b.a.b.zm var1, float var2, float var3, float var4, float var5, float var6, float var7) {
      this.b(var1, (com.aspose.cells.b.a.b.zc)null, var2, var3, var4, var5, var6, var7);
   }

   public void c(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zo[] var2) {
      if (var2 != null && var2.length != 0) {
         float[] var3 = new float[var2.length * 2];

         for(int var4 = 0; var4 < var2.length; ++var4) {
            var3[var4 * 2] = var2[var4].d();
            var3[var4 * 2 + 1] = var2[var4].e();
         }

         this.a((com.aspose.cells.b.a.b.zm)var1, (com.aspose.cells.b.a.b.zc)null, (float[])var3, 0);
      }
   }

   public void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zp var2) {
      this.b(var1, (com.aspose.cells.b.a.b.zc)null, (float)var2.c(), (float)var2.d(), (float)var2.e(), (float)var2.f());
   }

   public void a(com.aspose.cells.b.a.b.zm var1, int var2, int var3, int var4, int var5) {
      this.b(var1, (com.aspose.cells.b.a.b.zc)null, (float)var2, (float)var3, (float)var4, (float)var5);
   }

   public void c(com.aspose.cells.b.a.b.zm var1, float var2, float var3, float var4, float var5) {
      this.b(var1, (com.aspose.cells.b.a.b.zc)null, var2, var3, var4, var5);
   }

   public void a(String var1, com.aspose.cells.b.a.b.zg var2, com.aspose.cells.b.a.b.zc var3, com.aspose.cells.b.a.b.zo var4) {
      this.a(var1, var2, var3, var4.d(), var4.e(), Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY, (com.aspose.cells.b.a.b.zv)null);
   }

   public void a(String var1, com.aspose.cells.b.a.b.zg var2, com.aspose.cells.b.a.b.zc var3, com.aspose.cells.b.a.b.zq var4) {
      this.a(var1, var2, var3, var4.f(), var4.g(), var4.h(), var4.i(), (com.aspose.cells.b.a.b.zv)null);
   }

   public void a(String var1, com.aspose.cells.b.a.b.zg var2, com.aspose.cells.b.a.b.zc var3, com.aspose.cells.b.a.b.zo var4, com.aspose.cells.b.a.b.zv var5) {
      this.a(var1, var2, var3, var4.d(), var4.e(), Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY, var5);
   }

   public void a(String var1, com.aspose.cells.b.a.b.zg var2, com.aspose.cells.b.a.b.zc var3, com.aspose.cells.b.a.b.zq var4, com.aspose.cells.b.a.b.zv var5) {
      this.a(var1, var2, var3, var4.f(), var4.g(), var4.h(), var4.i(), var5);
   }

   public void a(String var1, com.aspose.cells.b.a.b.zg var2, com.aspose.cells.b.a.b.zc var3, float var4, float var5) {
      this.a(var1, var2, var3, var4, var5, Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY, (com.aspose.cells.b.a.b.zv)null);
   }

   public void a(String var1, com.aspose.cells.b.a.b.zg var2, com.aspose.cells.b.a.b.zc var3, float var4, float var5, com.aspose.cells.b.a.b.zv var6) {
      this.a(var1, var2, var3, var4, var5, Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY, var6);
   }

   public void a(String var1, com.aspose.cells.b.a.b.zg var2, com.aspose.cells.b.a.b.zc var3, com.aspose.cells.b.a.b.zp var4, com.aspose.cells.b.a.b.zv var5) {
      com.aspose.cells.b.a.b.zq var6 = new com.aspose.cells.b.a.b.zq((float)var4.c(), (float)var4.d(), (float)var4.e(), (float)var4.f());
      this.a(var1, var2, var3, var6, var5);
   }

   protected abstract void a(String var1, com.aspose.cells.b.a.b.zg var2, com.aspose.cells.b.a.b.zc var3, float var4, float var5, float var6, float var7, com.aspose.cells.b.a.b.zv var8);

   public void a(com.aspose.cells.b.a.b.zc var1, com.aspose.cells.b.a.b.zq var2) {
      this.a((com.aspose.cells.b.a.b.zm)null, var1, var2.f(), var2.g(), var2.h(), var2.i());
   }

   public void a(com.aspose.cells.b.a.b.zc var1, float var2, float var3, float var4, float var5) {
      this.a((com.aspose.cells.b.a.b.zm)null, var1, var2, var3, var4, var5);
   }

   public void a(com.aspose.cells.b.a.b.zc var1, com.aspose.cells.b.a.b.a.ze var2) {
      this.a((com.aspose.cells.b.a.b.zm)null, (com.aspose.cells.b.a.b.zc)var1, (com.aspose.cells.b.a.b.a.ze)var2);
   }

   public void a(com.aspose.cells.b.a.b.zc var1, float var2, float var3, float var4, float var5, float var6, float var7) {
      this.b((com.aspose.cells.b.a.b.zm)null, var1, var2, var3, var4, var5, var6, var7);
   }

   public void a(com.aspose.cells.b.a.b.zc var1, com.aspose.cells.b.a.b.zo[] var2) {
      this.a(var1, var2, 0);
   }

   public void a(com.aspose.cells.b.a.b.zc var1, com.aspose.cells.b.a.b.zo[] var2, int var3) {
      if (var2 != null && var2.length != 0) {
         float[] var4 = new float[var2.length * 2];

         for(int var5 = 0; var5 < var2.length; ++var5) {
            var4[var5 * 2] = var2[var5].d();
            var4[var5 * 2 + 1] = var2[var5].e();
         }

         this.a((com.aspose.cells.b.a.b.zm)null, (com.aspose.cells.b.a.b.zc)var1, (float[])var4, var3);
      }
   }

   public void a(com.aspose.cells.b.a.b.zc var1, com.aspose.cells.b.a.b.zp var2) {
      this.b((com.aspose.cells.b.a.b.zm)null, var1, (float)var2.c(), (float)var2.d(), (float)var2.e(), (float)var2.f());
   }

   public void b(com.aspose.cells.b.a.b.zc var1, com.aspose.cells.b.a.b.zq var2) {
      this.b((com.aspose.cells.b.a.b.zm)null, var1, var2.f(), var2.g(), var2.h(), var2.i());
   }

   public void b(com.aspose.cells.b.a.b.zc var1, float var2, float var3, float var4, float var5) {
      this.b((com.aspose.cells.b.a.b.zm)null, var1, var2, var3, var4, var5);
   }

   public com.aspose.cells.b.a.b.zt a(String var1, com.aspose.cells.b.a.b.zg var2) {
      return this.s.a(var1, var2);
   }

   public com.aspose.cells.b.a.b.zt a(String var1, com.aspose.cells.b.a.b.zg var2, com.aspose.cells.b.a.b.zo var3, com.aspose.cells.b.a.b.zv var4) {
      return this.s.a(var1, var2, var3, var4);
   }

   public com.aspose.cells.b.a.b.zt a(String var1, com.aspose.cells.b.a.b.zg var2, com.aspose.cells.b.a.b.zt var3, com.aspose.cells.b.a.b.zv var4) {
      return this.s.a(var1, var2, var3, var4);
   }

   public com.aspose.cells.b.a.b.zt a(String var1, com.aspose.cells.b.a.b.zg var2, int var3, com.aspose.cells.b.a.b.zv var4) {
      return this.s.a(var1, var2, var3, var4);
   }

   public void a(com.aspose.cells.b.a.b.a.zi var1) {
      this.b.b().b(var1);
   }

   public void a(com.aspose.cells.b.a.b.a.zi var1, int var2) {
      this.b.b().a(var1, var2);
   }

   public void d() {
      this.b.b().d();
   }

   public void a(com.aspose.cells.b.a.b.a.zf var1) {
      if (this.c.size() != 0 && this.d.size() != 0) {
         this.b = (zada)this.c.pop();
         this.f = (com.aspose.cells.a.d.zb)this.d.pop();
      } else {
         throw new IllegalStateException();
      }
   }

   public void a(float var1) {
      this.a(var1, 0);
   }

   public void a(float var1, int var2) {
      this.b.b().a(var1, var2);
   }

   public com.aspose.cells.b.a.b.a.zf e() {
      com.aspose.cells.a.d.zb var1 = new com.aspose.cells.a.d.zb();
      this.f.a((com.aspose.cells.a.d.zl)var1);
      this.d.push(this.f);
      this.f = var1;
      this.c.push(this.b);
      this.b = this.b.a();
      return null;
   }

   public void a(float var1, float var2) {
      this.b.b().a(var1, var2);
   }

   public void a(com.aspose.cells.b.a.b.zp var1) {
      this.a((com.aspose.cells.b.a.b.zr)(new com.aspose.cells.b.a.b.zr(var1)), 0);
   }

   public void a(com.aspose.cells.b.a.b.zq var1) {
      this.a((com.aspose.cells.b.a.b.zr)(new com.aspose.cells.b.a.b.zr(var1)), 0);
   }

   public void a(com.aspose.cells.b.a.b.zr var1, int var2) {
      this.b(var1, var2);
   }

   public void b(float var1, float var2) {
      this.a(var1, var2, 0);
   }

   public void a(float var1, float var2, int var3) {
      this.b.b().b(this.c(var1, this.g()), this.c(var2, this.h()), var3);
   }

   public com.aspose.cells.b.a.b.zq f() {
      return this.s.a(this.b.c());
   }

   public float g() {
      return this.q;
   }

   public float h() {
      return this.r;
   }

   public int i() {
      return this.g;
   }

   public void a(int var1) {
      this.b.a(var1);
   }

   public int j() {
      return this.b.e();
   }

   public void b(int var1) {
      this.b.b(var1);
   }

   public com.aspose.cells.b.a.b.a.zi k() {
      return this.b.b().b();
   }

   public void b(com.aspose.cells.b.a.b.a.zi var1) {
      this.b.a(var1);
   }

   private void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zc var2, float var3, float var4, float var5, float var6, float var7, float var8) {
      com.aspose.cells.a.d.zn var9 = new com.aspose.cells.a.d.zn();
      var9.a(this.b.b().b());
      com.aspose.cells.a.d.zo var10 = new com.aspose.cells.a.d.zo();
      com.aspose.cells.a.d.za var11 = new com.aspose.cells.a.d.za();
      var11.a(new com.aspose.cells.b.a.b.zo(this.b(var3), this.b(var4)));
      var11.a(new com.aspose.cells.b.a.b.zt(this.b(var5), this.b(var6)));
      var11.a(var7);
      var11.b(var8);
      var10.a(var11.a());
      var10.a((com.aspose.cells.a.d.zl)var11);
      var9.a((com.aspose.cells.a.d.zl)var10);
      if (var1 != null) {
         var9.a = com.aspose.cells.a.d.zs.a(var1, this.g());
      }

      if (var2 != null) {
         var9.a((com.aspose.cells.b.a.b.zc)var2.e());
      }

      this.f.a((com.aspose.cells.a.d.zl)var9);
   }

   private void b(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zc var2, float var3, float var4, float var5, float var6, float var7, float var8) {
      com.aspose.cells.a.d.zn var9 = new com.aspose.cells.a.d.zn();
      var9.a(this.b.b().b());
      com.aspose.cells.a.d.zo var10 = new com.aspose.cells.a.d.zo();
      com.aspose.cells.a.d.za var11 = new com.aspose.cells.a.d.za();
      var11.a(new com.aspose.cells.b.a.b.zo(this.b(var3), this.b(var4)));
      var11.a(new com.aspose.cells.b.a.b.zt(this.b(var5), this.b(var6)));
      var11.a(var7);
      var11.b(var8);
      var10.a((com.aspose.cells.a.d.zl)var11);
      float[] var12 = new float[]{var11.b().d(), var11.b().e(), var11.i().d(), var11.i().e()};
      com.aspose.cells.a.d.zq var13 = new com.aspose.cells.a.d.zq(var12);
      var10.a((com.aspose.cells.a.d.zl)var13);
      var10.a(var11.a());
      var9.a((com.aspose.cells.a.d.zl)var10);
      if (var1 != null) {
         var9.a = com.aspose.cells.a.d.zs.a(var1, this.g());
      }

      if (var2 != null) {
         var9.a((com.aspose.cells.b.a.b.zc)var2.e());
      }

      this.f.a((com.aspose.cells.a.d.zl)var9);
   }

   private void d(com.aspose.cells.b.a.b.zm var1, float var2, float var3, float var4, float var5) {
      com.aspose.cells.a.d.zn var6 = com.aspose.cells.a.d.zn.a(new com.aspose.cells.b.a.b.zo(this.b(var2), this.b(var3)), new com.aspose.cells.b.a.b.zo(this.b(var4), this.b(var5)));
      var6.a(this.b.b().b());
      var6.a = com.aspose.cells.a.d.zs.a(var1, this.g());
      this.f.a((com.aspose.cells.a.d.zl)var6);
   }

   private void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zc var2, float var3, float var4, float var5, float var6) {
      com.aspose.cells.a.d.zn var7 = com.aspose.cells.a.d.zn.a(new com.aspose.cells.b.a.b.zq(this.b(var3), this.b(var4), this.b(var5), this.b(var6)));
      var7.a(this.b.b().b());
      if (var1 != null) {
         var7.a = com.aspose.cells.a.d.zs.a(var1, this.g());
      }

      if (var2 != null) {
         var7.a((com.aspose.cells.b.a.b.zc)var2.e());
      }

      this.f.a((com.aspose.cells.a.d.zl)var7);
   }

   private void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zc var2, com.aspose.cells.b.a.b.a.ze var3) {
      com.aspose.cells.a.d.zn var4 = zadc.a(var3, this);
      var4.a(this.b.b().b());
      if (var1 != null) {
         var4.a = com.aspose.cells.a.d.zs.a(var1, this.g());
      }

      if (var2 != null) {
         var4.a((com.aspose.cells.b.a.b.zc)var2.e());
      }

      this.f.a((com.aspose.cells.a.d.zl)var4);
   }

   private void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zc var2, float[] var3, int var4) {
      if (var3 != null && var3.length >= 2) {
         for(int var5 = 0; var5 < var3.length; ++var5) {
            var3[var5] = this.b(var3[var5]);
         }

         com.aspose.cells.a.d.zn var8 = new com.aspose.cells.a.d.zn();
         var8.a(this.b.b().b());
         if (var1 != null) {
            var8.a = com.aspose.cells.a.d.zs.a(var1, this.g());
         }

         if (var2 != null) {
            var8.a((com.aspose.cells.b.a.b.zc)var2.e());
            var8.b(var4);
         }

         com.aspose.cells.a.d.zo var6 = new com.aspose.cells.a.d.zo();
         var6.a(new com.aspose.cells.b.a.b.zo(var3[0], var3[1]));
         var6.a(true);
         com.aspose.cells.a.d.zq var7 = new com.aspose.cells.a.d.zq(var3);
         var6.a((com.aspose.cells.a.d.zl)var7);
         var8.a((com.aspose.cells.a.d.zl)var6);
         this.f.a((com.aspose.cells.a.d.zl)var8);
      }
   }

   private void b(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zc var2, float var3, float var4, float var5, float var6) {
      com.aspose.cells.a.d.zn var7 = com.aspose.cells.a.d.zn.b(new com.aspose.cells.b.a.b.zq(this.b(var3), this.b(var4), this.b(var5), this.b(var6)));
      var7.a(this.b.b().b());
      if (var1 != null) {
         var7.a = com.aspose.cells.a.d.zs.a(var1, this.g());
      }

      if (var2 != null) {
         var7.a((com.aspose.cells.b.a.b.zc)var2.e());
      }

      this.f.a((com.aspose.cells.a.d.zl)var7);
   }

   private void a(com.aspose.cells.b.a.b.zm var1, com.aspose.cells.b.a.b.zo[] var2, int var3, int var4, float var5, boolean var6) {
      int var7 = var4 + 1;
      int var8 = var7 * 2 + 4;
      float[] var9 = new float[var8];
      int var10 = var3 + var7;
      if (var10 == var2.length) {
         --var10;
         --var8;
         var9[var8] = var2[var10].e();
         --var8;
         var9[var8] = var2[var10].d();
      }

      while(var8 > 0 && var10 >= 0) {
         --var8;
         var9[var8] = var2[var10].e();
         --var8;
         var9[var8] = var2[var10].d();
         --var10;
      }

      if (var8 > 0) {
         var9[1] = var2[0].e();
         var9[0] = var2[0].d();
      }

      this.a(var1, var9, var5, var6);
   }

   protected void a(com.aspose.cells.b.a.b.zm var1, float[] var2, float var3, boolean var4) {
      com.aspose.cells.a.d.zn var5 = new com.aspose.cells.a.d.zn();
      var5.a(this.b.b().b());
      if (var1 != null) {
         var5.a = com.aspose.cells.a.d.zs.a(var1, this.g());
      }

      this.f.a((com.aspose.cells.a.d.zl)var5);
      com.aspose.cells.a.d.zo var6 = new com.aspose.cells.a.d.zo();
      var6.a(var4);
      var6.a(new com.aspose.cells.b.a.b.zo(this.b(var2[2]), this.b(var2[3])));
      var5.a((com.aspose.cells.a.d.zl)var6);
      com.aspose.cells.a.d.zp var7 = new com.aspose.cells.a.d.zp();
      var6.a((com.aspose.cells.a.d.zl)var7);
      float var8 = var2[2];
      float var9 = var2[3];
      var3 /= 3.0F;
      float var10 = var2[4] - var2[0];
      float var11 = var2[5] - var2[1];
      float var12 = var2[2] + var3 * var10;
      float var13 = var2[3] + var3 * var11;
      int var14 = 2;

      for(int var15 = var2.length - 4; var14 < var15; var14 += 2) {
         int var16 = var14 + 1;
         int var18 = var16++;
         int var19 = var16++;
         int var20 = var16++;
         int var21 = var16++;
         int var22 = var16++;
         var10 = var2[var21] - var2[var14];
         var11 = var2[var22] - var2[var18];
         float var23 = var2[var19] - var3 * var10;
         float var24 = var2[var20] - var3 * var11;
         com.aspose.cells.a.d.zt var25 = new com.aspose.cells.a.d.zt();
         var25.a(new com.aspose.cells.b.a.b.zo(this.b(var8), this.b(var9)));
         var25.b(new com.aspose.cells.b.a.b.zo(this.b(var12), this.b(var13)));
         var25.c(new com.aspose.cells.b.a.b.zo(this.b(var23), this.b(var24)));
         var25.d(new com.aspose.cells.b.a.b.zo(this.b(var2[var19]), this.b(var2[var20])));
         var7.a(var25);
         var8 = var2[var19];
         var9 = var2[var20];
         var12 = var2[var19] + var3 * var10;
         var13 = var2[var20] + var3 * var11;
      }

   }

   protected abstract void b(com.aspose.cells.b.a.b.zr var1, int var2);

   protected abstract void a(float var1, float var2, float var3, float var4, com.aspose.cells.b.a.b.zj var5);

   abstract float c(float var1, float var2);

   abstract float b(float var1);

   private boolean a(com.aspose.cells.b.a.b.zm var1) {
      return var1.h() == 255 || var1.i() == 255;
   }

   private zato b(com.aspose.cells.b.a.b.zm var1) {
      zato var2 = new zato();
      if (var1.h() == 255) {
         var2.a(var1.m());
         var1.c(0);
      }

      if (var1.i() == 255) {
         var2.b(var1.n());
         var1.d(0);
      }

      var2.a((com.aspose.cells.b.a.b.zm)var1.q());
      return var2;
   }
}
